<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>

<body ng-app="app">
	<h1>Magical $parse service</h1>
	
	<div ng-controller="ParseController as vm">{{vm.parsedMsg}}</div>
	
	<script src="https://code.angularjs.org/1.4.3/angular.js"></script>
	<script>
		(function() {
			angular.module('app', []).controller('ParseController', ParseController);

			function ParseController($scope, $parse) {
				this.libs = {};
				this.libs.angular = {
					version: '1.4.3'
				};

				var template = $parse("'This example uses AngularJS ' + libs.angular.version");
				this.parsedMsg = template(this);
			}
		})();
	</script>
</body>

</html>